package com.sjft.cloud.commons.support.datamodel.core.prop;

import com.sjft.cloud.commons.support.datamodel.core.rule.SelectRule;
import com.sjft.cloud.commons.support.datamodel.core.value.SelectValue;
import com.sjft.cloud.commons.support.datamodel.enums.ModelFieldTypeEnum;
import com.sjft.cloud.commons.support.datamodel.enums.MysqlColumnTypeEnum;
import com.sjft.cloud.commons.support.datamodel.core.ModelFieldProp;
import lombok.Getter;
import lombok.Setter;

/**
 * DateTimeType
 *
 * @author Jin
 */
@Getter
@Setter
public class SelectProp implements ModelFieldProp<SelectRule, SelectValue> {
    private String name = ModelFieldTypeEnum.SELECT_NAME;
    private String columnType = MysqlColumnTypeEnum.VARCHAR.getCode();
    private Integer length = 64;
    private Boolean autoIncrement = false;
    private String defaultValue = "";
    private Boolean notNull = false;
    private Boolean primaryKey = false;

    private SelectRule rule = new SelectRule();
    private SelectValue value = new SelectValue();

}
